<template>
  <div class="system">
   <navigation-bar></navigation-bar>
    <el-container>
      <!--  侧边栏-->
      <el-aside width="188px">
        <div class="title">系统管理</div>
        <el-menu
          :default-active="activePath"
          class="el-menu-vertical-demo"
          router>
          <el-menu-item index="/system/administrator">
            <i class="el-icon-menu"></i>
            <span slot="title">管理员管理</span>
          </el-menu-item>
          <!--        <el-menu-item index="/system/notice">-->
          <!--          <i class="el-icon-menu"></i>-->
          <!--          <span slot="title">系统消息管理</span>-->
          <!--        </el-menu-item>-->
        </el-menu>
      </el-aside>
      <!--    主要内容-->
      <el-main>
        <router-view></router-view>
      </el-main>
    </el-container>
  </div>

</template>

<script>
import NavigationBar from "@/components/NavigationBar";
export default {
  name: "System",
  components: {NavigationBar},
  data(){
    return{
      activePath: '/system/administrator'
    }
  }
}
</script>

<style scoped>
/*.system{*/
/*  width: 100%;*/
/*}*/
.system{
  height: 100%;
}
.el-container{
  height: calc(100% - 50px);
}
.el-menu{
  height: calc(100% - 40px);
}
.title{
  text-align: center;
  height: 40px;
  line-height: 40px;
  font-size: 16px;
  font-weight: bold;
  background-color: rgb(55,75,118);
  /*margin-bottom: 10px;*/
  color: white;
}
</style>
